<div el-row type="flex" justify="end">
  <div el-col span="3">
    <el-button type="primary" routerLink="/device/add">新增</el-button>
  </div>
</div>
<div el-row>
  <el-table [model]="devices" [scroll-x]="true" center="all">
    <el-table-column model-key="id" label="设备编号">
    </el-table-column>
    <el-table-column model-key="name" label="设备名称">
    </el-table-column>
    <el-table-column model-key="appId" label="平台编号" [render-html]="true">
    </el-table-column>
    <el-table-column label="操作">
      <ng-template #slot let-scope="scope">
        <el-button-group>
          <el-button type="primary" icon="edit" size="small">编辑</el-button>
          <el-button type="warning" icon="delete" size="small" (click)="doDelete(scope.rowData)">删除</el-button>
          <el-button type="primary" size="small" [routerLink]="['/simulation', scope.rowData.id]">模拟</el-button>
        </el-button-group>
      </ng-template>
    </el-table-column>
  </el-table>
</div>
